/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Action;

import Entity.Category;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Cyrax
 */
@Local
public interface CategorySessionBeanLocal {

    List<Category> listAllCategory();

    void insertCategory(String nameCategory);

    void updateCategory(int idCategory, String categoryName);

    void deleteCategory(Category cat);

    void addCategory(Category cat);

    boolean deleteCat(int idCategory);

    List<Category> searchCategory(String categoryName);

    void categoryUpdate(Category cat);

    boolean checkCategoryName(String name);
}
